/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package seGobangClient.CoordinateTransfer;

/**
 *
 * @author micheal
 */

import java.util.*;
import javax.vecmath.*;

public class CoTransfer {
    
    private static CoTransfer trans=new CoTransfer();
    
    public CoTransfer(){}
    
    public static CoTransfer getInstance(){
    
        return trans;
    }
    
    public int[][] MatToMatrix(HashMap <Point2i,Byte> Chesses){
        
        int[][] ChessBox=new int[15][15];
        Point2i point=new Point2i();
        
        for(int i=0;i<15;i++){
        
            for(int j=0;j<15;j++){
            
                point.x=-7+i;
                point.y=-7+j;
                ChessBox[i][j]=(int)Chesses.get(point);
            }
        }
    
        return ChessBox;
    }

}
